\<template>
  <b-modal  v-model="model.show" centered hide-footer >
    <div class="code d-block text-center">
      <h2>{{company.companyName}}</h2>
      <div class="code-img">
        <img :src="getUrl(company.qrCode)" />
      </div>
      <p class="text">微信扫码关注［{{company.companyName}}公众号］，马上进行预约</p>
      <p class="bottom-text">
        <span class="line">
          <i></i>
        </span>
        <span>网上预约挂号</span>
        <span class="line">
          <i></i>
        </span>
      </p>
    </div>
  </b-modal>
</template>

<script>


  export default {
    props:['model', 'company'],
    computed: {},
    data() {
      return {
        qrCode: "upload/cms/alladzhanjiang/erweima.jpg"
      }
    },
    components: {

    },
    mounted() {

    },
    methods: {

    }
  }
</script>

<style lang="less">
  @import "~assets/style/public";

  .code{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    padding-bottom: 20/@size;

    h2{
      font-family: MicrosoftYaHeiUI;
      font-size: 28/@size;
      color: @icon-color;
      text-align: center;
      margin-top: 10/@size;
    }
    .code-img{
      .width(240);
      .height(240);
      padding: 10/@size;
      img{
        width: 100%;
      }
      margin:10/@size auto;
      opacity: 0.5;
      background: @icon-color;
      border-radius: 10/@size;
    }
    .text{
      font-family: MicrosoftYaHeiUI;
      font-size: 16/@size;
      color: @icon-color;
      text-align: center;
    }
    .bottom-text{
      font-family: MicrosoftYaHeiUI;
      font-size: 14/@size;
      color: @icon-color;
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 10/@size;
      .line{
        width: 35%;
        height: 1px;
        background:@icon-color;
        display: block;
      }
    }
  }

  @media (min-width: 320px) and (max-width: 767px) {
    .code{

      h2{
        font-size: @font-28;
      }
      .text{
        font-size: @font-24;
      }
      .bottom-text{
        font-size: @font-24;
        margin-top: 10/@size;
      }
    }
  }

</style>
